#ifndef _GOVT_STAT_H
#define _GOVT_STAT_H
/*******************************************************************************
 ** Name:   stat.hpp                                                          **
 ** Description:                         **
 **                                                                           **
 ** Open Source Initiative (OSI) Approved License                             **
 **                                                                           **
 ** The contents of this file are subject to the terms of the                 **
 ** Common Development and Distribution License, Version 1.0 only             **
 ** (the "License").  You may not use this file except in compliance          **
 ** with the License.                                                         **
 **                                                                           **
 ** You can find a copy of the license in the LICENSE file within             **
 ** this distribution or at $WIKI/display/ODS/License-software.              **
 ** Software distributed under the License is distributed on an "AS IS"       **
 ** basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.           **
 ** See the License for the specific language governing permissions           **
 ** and limitations under the License.                                        **
 **                                                                           **
 ** When distributing Covered Code, include this CDDL header in each          **
 ** file and include the License file at $GAME_DIR/LICENSE.                   **
 ** If applicable, add the following below this header, with the indicated    **
 ** fields enclosed by brackets "[]" replaced with your own identifying       **
 ** information: Portions Copyright [yyyy] [name of copyright owner]          **
 **                                                                           **
 ** Copyright (c) 2009-2012 Open Design Strategies, LLC                       **
 ** All rights reserved.                                                      **
 ******************************************************************************/
// $HeadURL$
// Modified $Date$ by $Author$
// $Id$ ******************************************************************************/
// Modified $Date$ by $Author$
#define _stat_h_ID    "$Id$"
#include "common.hpp"

#define BASE_STAT_MAX		26	// the highest level a primary stat can get
#define BASE_STAT_START		8	// base stats start off at 8
#define DEFAULT_STARTING_POINTS		30

#include <odb/core.hxx>

namespace stats
{
//	enum class stat {
//		undef, str, dex, con, inte, wis, cha, wit, wil, gen,
//		speed, vit, dr, dres, encum
//
//	};

#pragma db object table("stats")
	class stat
	{
	public:
		stat() { }

		const std::string & Name() const { return name_; }
		const std::string & Abbr() const { return abbr_; }
		const entity_t		ID() const { return id_; }

	private:
		friend class odb::access;

#pragma db id auto
		entity_t	id_;
		std::string	name_;
		std::string	abbr_;
	};

#pragma db object table("stat_mods")
	class mods
	{
	public:
		mods(): val_(0) { }
		mods(entity_t s, const int v)
			{ idstat_ = s; val_ = v; }
	private:
		friend class odb::access;

#pragma db id auto
		entity_t	id_;
		entity_t	idstat_;
		int val_;
	};


}	/* namespace stats */

#endif	/* GOVT_STAT_H */

